<div ng-init="init();" class="kmi-layout-content OPM02-content">
    <div class="kmi-header-row">
        <div class="kmi-side-btn left" ng-click="back();">
            <i class="material-icons">&#xE408;</i>
            <div class="kmi-can-click"></div>
        </div>
        <div class="brand-title">
            <div class="custom" ng-if="companyName">
                <div class="title" ng-bind="companyName"></div>
                <img src="" alt="" class="brand">
                <div class="gap"></div>
            </div>
            <div class="digiwin">
                <img src="image/smes_v340/logo_ch.png" alt="">
                <img src="image/smes_v340/logo_en.png" alt="">
            </div>
        </div>
        <div class="header-title" ng-bind="'OPM02.title' | translate"></div>
        <div class="header-logo"></div>
    </div>
    <div class="kmi-layout-main-content">
        <div class="kmi-layout-page">
            <div class="kmi-text-fields">
                <label class="label" ng-bind="'OPM02.wo_no' | translate"></label>
                <input ng-model="wo_no" ng-keypress="barcodeScan($event);"></input>
                <div class="tip search" ng-click="loadWoNoList();"><img src="image/icons/search.png"></img> </div>
                <div class="kmi-button kmi-button-confrim" ng-click="search()" style="width:100px">
                    <label ng-bind="'common.btn.search' | translate"></label>
                    <div class="kmi-can-click"></div>
                </div>
            </div>
            <div class="kmi-list">
                <div class="kmi-list__header">
                    <!-- 20230313 modify by Alan for M#129881: -->
                    <div class="kmi-list__column width-fixed" style="flex:0 0 40px">
                        <button class="mdl-button mdl-js-button mdl-button--icon" ng-click="selectAll();">
                            <img ng-if="!isSelectAll" src="image/icons/check0.png"></img>
                            <img ng-if="isSelectAll"  src="image/icons/check1.png"></img>
                        </button>
                    </div>
                    <div class="kmi-list__column" style="flex:1;" ng-bind="'OPM02.list.lot_no' | translate"></div>
                    <div class="kmi-list__column" style="flex:1;" ng-bind="'OPM02.list.urgent' | translate"></div>
                    <div class="kmi-list__column" style="flex:1;" ng-bind="'OPM02.list.timing' | translate"></div>
                </div>
                <div class="kmi-list__row-content">
                <div class="kmi-list__row" ng-repeat="item in urgent_and_tining track by $index">
                    <div class="kmi-list__column" style="flex:0 0 40px;">
                        <button class="mdl-button mdl-js-button mdl-button--icon" ng-click="select(item);">
                            <img ng-show="!item.isSelect" src="image/icons/check0.png"></img>
                            <img ng-show="item.isSelect" src="image/icons/check1.png"></img>
                        </button>
                    </div>
                    <div class="kmi-list__column column-border" style="flex:1;" ng-bind="item.lot_no"></div>
                    <div class="kmi-list__column column-border" style="flex:1;">
                        <button class="mdl-button mdl-js-button mdl-button--icon" ng-click="changeUrgentState(item);">
                            <img ng-show="item.urgent == '0'" src="image/icons/check0.png"></img>
                            <img ng-show="item.urgent == '1'" src="image/icons/check1.png"></img>
                        </button>
                    </div>
                    <div class="kmi-list__column column-border" style="flex:1;">
                        <button class="mdl-button mdl-js-button mdl-button--icon" ng-click="changeTimingState(item);">
                            <img ng-show="item.timing == '0'" src="image/icons/check0.png"></img>
                            <img ng-show="item.timing == '1'" src="image/icons/check1.png"></img>
                        </button>
                    </div>
                </div>
            </div>
        </div>
        <div class="kmi-layout-footer">
            <button class="mdl-button mdl-js-button mdl-button--fab mdl-shadow--custom mdl-button--custom1"
                    ng-click="confirm();">
              <i class="material-icons">done</i>
            </button>
        </div>
    </div>
</div>
